package com.gong.service.role;

import com.gong.mapper.role.RoleMapper;
import com.gong.mapper.role.RoleMapperImpl;
import com.gong.pojo.Role;
import com.gong.pojo.User;
import org.junit.jupiter.api.Test;

import java.util.List;

/**
 * @ClassName: RoleServiceImpl
 * @Description: TODO
 * @Author: 。。。
 * @Data: 2021/10/228:39
 * @Version: 1.0
 **/
public class RoleServiceImpl implements RoleService {

	private RoleMapper roleMapper = new RoleMapperImpl();

	@Override
	public List<Role> getUserRole() {
		return roleMapper.getUserRole();
	}

	@Test
	public void test() {
		List<Role> userRole = this.getUserRole();
		for (Role role : userRole) {
			System.out.println(role.getRolename());
		}
	}
}
